package com.comcast.core.eeg.types;

import java.io.ObjectStreamException;

public enum TransactionOption {
	
    LOCAL_TRANSACTION,
    AUTO_COMMIT,
    DISTRIBUTED_TRANSACTION;
    
    private static final long serialVersionUID = 1L; 
    private EnumHolder<TransactionOption> serializationToken;
    
    public static TransactionOption fromValue(String value) {
        return valueOf(value);
    }

    public String getValue() {
        return this.toString();
    }

    private TransactionOption() {
        this.serializationToken = new EnumHolder<TransactionOption>(this);
    }

    private Object writeReplace() throws ObjectStreamException {
        return serializationToken;
    }        

}